<div class="content-wrapper">
    <?php
    $form = $this->form;
    $form->prepare();

    $form->get('shop_name|base')->setAttributes([
        'placeholder' => $this->translate('网站名称')
    ]);
    $form->get('shop_extend_name|base')->setAttributes([
        'placeholder' => $this->translate('填写网站扩展名')
    ]);
    $form->get('shop_keywords|base')->setAttributes([
        'placeholder' => $this->translate('填写网站关键词')
    ]);
    $form->get('shop_description|base')->setAttributes([
        'placeholder' => $this->translate('填写网站描述')
    ]);
    $form->get('shop_hot_keywords|base')->setAttributes([
        'placeholder' => $this->translate('填写热门关键词，用 | 分隔')
    ]);
    $form->get('website_icp|base')->setAttributes([
        'placeholder' => $this->translate('填写网站备案号')
    ]);
    $form->get('website_close_info|base')->setAttributes([
        'placeholder' => $this->translate('填写网站关闭的原因')
    ]);
    ?>
    <?php echo $this->form()->openTag($form); ?>
    <section class="content-header">
        <?php echo $this->partial('layout/breadcrumb'); ?>

        <h1 class="pull-right" id="dbshop-menu-top">
            <button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-check"></i> <?php echo $this->translate('保存设置'); ?></button>
            <?php echo $this->HelpUrl('system'); ?>
        </h1>
    </section>

    <section class="content">

        <div class="row">
            <div class="col-md-12">
                <div class="nav-tabs-custom">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#tab_1" data-toggle="tab"><?php echo $this->translate('基本设置'); ?></a></li>
                        <li><a href="#tab_2" data-toggle="tab"><?php echo $this->translate('验证码'); ?></a></li>
                        <li><a href="#tab_3" data-toggle="tab"><?php echo $this->translate('邮件服务器'); ?></a></li>
                        <li><a href="#tab_9" data-toggle="tab"><?php echo $this->translate('短信服务'); ?></a></li>
                        <li><a href="#tab_4" data-toggle="tab"><?php echo $this->translate('商品设置'); ?></a></li>
                        <li><a href="#tab_5" data-toggle="tab"><?php echo $this->translate('订单设置'); ?></a></li>
                        <li><a href="#tab_6" data-toggle="tab"><?php echo $this->translate('统计设置'); ?></a></li>
                        <li><a href="#tab_7" data-toggle="tab"><?php echo $this->translate('二维码设置'); ?></a></li>
                        <li><a href="#tab_8" data-toggle="tab"><?php echo $this->translate('内容设置'); ?></a></li>
                        <li><a href="#tab_10" data-toggle="tab"><?php echo $this->translate('前台底部'); ?></a></li>
                    </ul>
                    <div class="tab-content">
                        <?php echo $this->partial('layout/messages'); ?>
                        <div class="tab-pane active" id="tab_1">
                            <div class="box-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('网站名称'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('shop_name|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_name|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('网站扩展名称'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('shop_extend_name|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_extend_name|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('网站关键词'); ?>(SEO)</label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('shop_keywords|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_keywords|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('网站描述'); ?>(SEO)</label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('shop_description|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_description|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('热门关键词'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('shop_hot_keywords|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_hot_keywords|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('网站LOGO'); ?></label>
                                    <div class="col-sm-3">
                                        <img src="<?php echo $this->basePath($form->get('shop_logo|base')->getValue()) . '?v='.time(); ?>" style="max-width: 300px;padding-bottom: 5px;">
                                        <?php echo $this->formElement($form->get('shop_logo|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_logo|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('网站favicon'); ?></label>
                                    <div class="col-sm-3">
                                        <img src="<?php echo $this->basePath($form->get('shop_favicon|base')->getValue()) . '?v='.time(); ?>" style="max-width: 300px;padding-bottom: 5px;">
                                        <?php echo $this->formElement($form->get('shop_favicon|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_favicon|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('网站备案号'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('website_icp|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('website_icp|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('关闭网站'); ?></label>
                                    <div class="col-sm-6">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('website_close|base')); ?> <?php echo $this->translate('关闭'); ?>
                                                <?php echo $this->formElementErrors($form->get('website_close|base'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('关闭原因'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('website_close_info|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('website_close_info|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('后台语言包'); ?><span class="must_add_value">*</span></label>
                                    <div class="col-sm-3">
                                        <?php echo $this->formElement($form->get('a_language|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('a_language|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('前台语言包'); ?><span class="must_add_value">*</span></label>
                                    <div class="col-sm-3">
                                        <?php echo $this->formElement($form->get('f_language|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('f_language|base'), ['class'=>'error-message']); ?>
                                    </div>
                                    <p class="form-control-static text-primary"><?php echo $this->translate('启用的前台模板必须有对应语言包才有效'); ?></p>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('系统时区'); ?><span class="must_add_value">*</span></label>
                                    <div class="col-sm-3">
                                        <?php echo $this->formElement($form->get('website_timezone|base')); ?>
                                        <?php echo $this->formElementErrors($form->get('website_timezone|base'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="tab_2">
                            <div class="box-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('注册验证码'); ?></label>
                                    <div class="col-sm-6">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('user_register_captcha|captcha')); ?> <?php echo $this->translate('启用'); ?>
                                                <?php echo $this->formElementErrors($form->get('user_register_captcha|captcha'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('登录验证码'); ?></label>
                                    <div class="col-sm-6">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('user_login_captcha|captcha')); ?> <?php echo $this->translate('启用'); ?>
                                                <?php echo $this->formElementErrors($form->get('user_login_captcha|captcha'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('商品咨询验证码'); ?></label>
                                    <div class="col-sm-6">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('goods_ask_captcha|captcha')); ?> <?php echo $this->translate('启用'); ?>
                                                <?php echo $this->formElementErrors($form->get('goods_ask_captcha|captcha'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="tab_3">
                            <div class="box-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('邮件服务'); ?></label>
                                    <div class="col-sm-6">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('email_service_state|email')); ?> <?php echo $this->translate('启用'); ?>
                                                <?php echo $this->formElementErrors($form->get('email_service_state|email'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('邮件服务器类型'); ?></label>
                                    <div class="col-sm-3">
                                        <?php echo $this->formElement($form->get('email_service_type|email')); ?>
                                        <?php echo $this->formElementErrors($form->get('email_service_type|email'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group smtp-service" <?php if($form->get('email_service_type|email')->getValue() == 'dbshopEmailService') echo 'style="display: none;"'; ?>>
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('发信人邮件地址'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('send_from_mail|email')); ?>
                                        <?php echo $this->formElementErrors($form->get('send_from_mail|email'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('发信人名称'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('send_name|email')); ?>
                                        <?php echo $this->formElementErrors($form->get('send_name|email'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group dbshop-email-service" <?php if($form->get('email_service_type|email')->getValue() == 'smtpService') echo 'style="display: none;"'; ?>>
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('珑大邮件服务密码'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('dbshop_email_service_password|email')); ?>
                                        <?php echo $this->formElementErrors($form->get('dbshop_email_service_password|email'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group smtp-service" <?php if($form->get('email_service_type|email')->getValue() == 'dbshopEmailService') echo 'style="display: none;"'; ?>>
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('SMTP服务器'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('smtp_location|email')); ?>
                                        <?php echo $this->formElementErrors($form->get('smtp_location|email'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group smtp-service" <?php if($form->get('email_service_type|email')->getValue() == 'dbshopEmailService') echo 'style="display: none;"'; ?>>
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('SMTP端口'); ?></label>
                                    <div class="col-sm-2">
                                        <?php echo $this->formElement($form->get('smtp_port|email')); ?>
                                        <?php echo $this->formElementErrors($form->get('smtp_port|email'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group smtp-service" <?php if($form->get('email_service_type|email')->getValue() == 'dbshopEmailService') echo 'style="display: none;"'; ?>>
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('SMTP账户'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('smtp_name|email')); ?>
                                        <?php echo $this->formElementErrors($form->get('smtp_name|email'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group smtp-service" <?php if($form->get('email_service_type|email')->getValue() == 'dbshopEmailService') echo 'style="display: none;"'; ?>>
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('SMTP账户密码'); ?></label>
                                    <div class="col-sm-6">
                                        <?php echo $this->formElement($form->get('smtp_password|email')); ?>
                                        <?php echo $this->formElementErrors($form->get('smtp_password|email'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group smtp-service" <?php if($form->get('email_service_type|email')->getValue() == 'dbshopEmailService') echo 'style="display: none;"'; ?>>
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('SMTP验证'); ?></label>
                                    <div class="col-sm-2">
                                        <?php echo $this->formElement($form->get('smtp_check|email')); ?>
                                        <?php echo $this->formElementErrors($form->get('smtp_check|email'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group smtp-service" <?php if($form->get('email_service_type|email')->getValue() == 'dbshopEmailService') echo 'style="display: none;"'; ?>>
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('SMTP安全连接'); ?></label>
                                    <div class="col-sm-2">
                                        <?php echo $this->formElement($form->get('smtp_secure_conn|email')); ?>
                                        <?php echo $this->formElementErrors($form->get('smtp_secure_conn|email'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="tab_9">
                            <div class="box-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('短信服务'); ?></label>
                                    <div class="col-sm-3">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('sms_state|sms')); ?> <?php echo $this->translate('启用'); ?>
                                                <?php echo $this->formElementErrors($form->get('sms_state|sms'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('短信服务商'); ?></label>
                                    <div class="col-sm-2">
                                        <?php echo $this->formElement($form->get('sms_service_provider|sms')); ?>
                                        <?php echo $this->formElementErrors($form->get('sms_service_provider|sms'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('签名名称'); ?></label>
                                    <div class="col-sm-3">
                                        <?php echo $this->formElement($form->get('sms_sign_name|sms')); ?>
                                        <?php echo $this->formElementErrors($form->get('sms_sign_name|sms'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('ID'); ?></label>
                                    <div class="col-sm-4">
                                        <?php echo $this->formElement($form->get('sms_id|sms')); ?>
                                        <?php echo $this->formElementErrors($form->get('sms_id|sms'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('KEY'); ?></label>
                                    <div class="col-sm-4">
                                        <?php echo $this->formElement($form->get('sms_secret|sms')); ?>
                                        <?php echo $this->formElementErrors($form->get('sms_secret|sms'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group tencent-sms" <?php if($form->get('sms_service_provider|sms')->getValue() != 'tencentSms') echo 'style="display: none;"'; ?>>
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('SDK App Id'); ?></label>
                                    <div class="col-sm-4">
                                        <?php echo $this->formElement($form->get('sms_sdk_id|sms')); ?>
                                        <?php echo $this->formElementErrors($form->get('sms_sdk_id|sms'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="tab_4">
                            <div class="box-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('商品货号前缀'); ?></label>
                                    <div class="col-sm-3">
                                        <?php echo $this->formElement($form->get('goods_sn_prefix|goods')); ?>
                                        <?php echo $this->formElementErrors($form->get('goods_sn_prefix|goods'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('前台会员组价格'); ?></label>
                                    <div class="col-sm-3">
                                        <?php echo $this->formElement($form->get('goods_group_price_show|goods')); ?>
                                        <?php echo $this->formElementErrors($form->get('goods_group_price_show|goods'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('登录后商品价格可见'); ?></label>
                                    <div class="col-sm-6">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('login_goods_price_show|goods')); ?> <?php echo $this->translate('开启'); ?>
                                                <?php echo $this->formElementErrors($form->get('login_goods_price_show|goods'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="tab_5">
                            <div class="box-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('退货申请'); ?></label>
                                    <div class="col-sm-6">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('order_return|order')); ?> <?php echo $this->translate('启用'); ?> (<?php echo $this->translate('只对实物商品可用'); ?>)
                                                <?php echo $this->formElementErrors($form->get('order_return|order'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('退货时限'); ?></label>
                                    <div class="col-sm-2">
                                        <?php echo $this->formElement($form->get('order_return_limit|order')); ?>
                                        <?php echo $this->formElementErrors($form->get('order_return_limit|order'), ['class'=>'error-message']); ?>
                                    </div>
                                    <p class="form-control-static">
                                        <?php echo $this->translate('天内,准许退货(确认收货后)'); ?>
                                    </p>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('退货/退款原因'); ?></label>
                                    <div class="col-sm-5">
                                        <?php echo $this->formElement($form->get('order_return_cause|order')); ?>
                                        <?php echo $this->formElementErrors($form->get('order_return_cause|order'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('选择送货时间'); ?></label>
                                    <div class="col-sm-6">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('delivery_time_state|order')); ?> <?php echo $this->translate('启用'); ?>
                                                <?php echo $this->formElementErrors($form->get('delivery_time_state|order'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('送货时间'); ?></label>
                                    <div class="col-sm-5">
                                        <?php echo $this->formElement($form->get('delivery_time|order')); ?>
                                        <?php echo $this->formElementErrors($form->get('delivery_time|order'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="tab_6">
                            <div class="box-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('统计代码'); ?></label>
                                    <div class="col-sm-8">
                                        <?php echo $this->formElement($form->get('statistics_code|statistics')); ?>
                                        <?php echo $this->formElementErrors($form->get('statistics_code|statistics'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="tab_7">
                            <div class="box-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('站点二维码'); ?></label>
                                    <div class="col-sm-6">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('website_qr_code|qr_code')); ?> <?php echo $this->translate('启用').' ['.$this->translate('PC模板').']'; ?>
                                                <?php echo $this->formElementErrors($form->get('website_qr_code|qr_code'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('前台商品二维码'); ?></label>
                                    <div class="col-sm-6">
                                        <div class="checkbox">
                                            <label>
                                                <?php echo $this->formElement($form->get('goods_qr_code|qr_code')); ?> <?php echo $this->translate('启用').' ['.$this->translate('PC模板').']'; ?>
                                                <?php echo $this->formElementErrors($form->get('goods_qr_code|qr_code'), ['class'=>'error-message']); ?>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="tab_8">
                            <div class="box-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('商品品质保证内容'); ?></label>
                                    <div class="col-sm-10">
                                        <?php echo $this->formElement($form->get('goods_quality|content')); ?>
                                        <?php echo $this->formElementErrors($form->get('goods_quality|content'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('商品售后服务'); ?></label>
                                    <div class="col-sm-10">
                                        <script id="sales_service|content" name="sales_service|content" type="text/plain"><?php echo $this->sales_service; ?></script>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('商品如何购买'); ?></label>
                                    <div class="col-sm-10">
                                        <script id="buy_service|content" name="buy_service|content" type="text/plain"><?php echo $this->buy_service; ?></script>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane" id="tab_10">
                            <div class="box-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('图片1'); ?></label>
                                    <div class="col-sm-4">
                                        <?php if(is_string($form->get('shop_footer_image_1|shop_footer')->getValue()) && !empty($form->get('shop_footer_image_1|shop_footer')->getValue())) { ?>
                                            <p id="shop_footer_image_1" style="margin-bottom: 15px;">
                                                <img src="<?php echo $this->basePath($form->get('shop_footer_image_1|shop_footer')->getValue()) . '?v='.time(); ?>" style="max-width: 300px;padding-bottom: 5px;">
                                                <a href="javascript:;" class="label label-danger" onclick="deleteFooterImage('shop_footer_image_1');" style="vertical-align: bottom"><i class="fa fa-trash-o" aria-hidden="true"></i> <?php echo $this->translate('删除'); ?></a>
                                            </p>
                                        <?php } ?>
                                        <?php echo $this->formElement($form->get('shop_footer_image_1|shop_footer')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_footer_image_1|shop_footer'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('链接地址1'); ?></label>
                                    <div class="col-sm-5">
                                        <?php echo $this->formElement($form->get('shop_footer_image_1_url|shop_footer')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_footer_image_1_url|shop_footer'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('图片2'); ?></label>
                                    <div class="col-sm-4">
                                        <?php if(is_string($form->get('shop_footer_image_2|shop_footer')->getValue()) && !empty($form->get('shop_footer_image_2|shop_footer')->getValue())) { ?>
                                            <p id="shop_footer_image_2" style="margin-bottom: 15px;">
                                                <img src="<?php echo $this->basePath($form->get('shop_footer_image_2|shop_footer')->getValue()) . '?v='.time(); ?>" style="max-width: 300px;padding-bottom: 5px;">
                                                <a href="javascript:;" class="label label-danger" onclick="deleteFooterImage('shop_footer_image_2');" style="vertical-align: bottom"><i class="fa fa-trash-o" aria-hidden="true"></i> <?php echo $this->translate('删除'); ?></a>
                                            </p>
                                        <?php } ?>
                                        <?php echo $this->formElement($form->get('shop_footer_image_2|shop_footer')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_footer_image_2|shop_footer'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('链接地址2'); ?></label>
                                    <div class="col-sm-5">
                                        <?php echo $this->formElement($form->get('shop_footer_image_2_url|shop_footer')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_footer_image_2_url|shop_footer'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('图片3'); ?></label>
                                    <div class="col-sm-4">
                                        <?php if(is_string($form->get('shop_footer_image_3|shop_footer')->getValue()) && !empty($form->get('shop_footer_image_3|shop_footer')->getValue())) { ?>
                                            <p id="shop_footer_image_3" style="margin-bottom: 15px;">
                                                <img src="<?php echo $this->basePath($form->get('shop_footer_image_3|shop_footer')->getValue()) . '?v='.time(); ?>" style="max-width: 300px;padding-bottom: 5px;">
                                                <a href="javascript:;" class="label label-danger" onclick="deleteFooterImage('shop_footer_image_3');" style="vertical-align: bottom"><i class="fa fa-trash-o" aria-hidden="true"></i> <?php echo $this->translate('删除'); ?></a>
                                            </p>
                                        <?php } ?>
                                        <?php echo $this->formElement($form->get('shop_footer_image_3|shop_footer')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_footer_image_3|shop_footer'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('链接地址3'); ?></label>
                                    <div class="col-sm-5">
                                        <?php echo $this->formElement($form->get('shop_footer_image_3_url|shop_footer')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_footer_image_3_url|shop_footer'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('图片4'); ?></label>
                                    <div class="col-sm-4">
                                        <?php if(is_string($form->get('shop_footer_image_4|shop_footer')->getValue()) && !empty($form->get('shop_footer_image_4|shop_footer')->getValue())) { ?>
                                            <p id="shop_footer_image_4" style="margin-bottom: 15px;">
                                                <img src="<?php echo $this->basePath($form->get('shop_footer_image_4|shop_footer')->getValue()) . '?v='.time(); ?>" style="max-width: 300px;padding-bottom: 5px;">
                                                <a href="javascript:;" class="label label-danger" onclick="deleteFooterImage('shop_footer_image_4');" style="vertical-align: bottom"><i class="fa fa-trash-o" aria-hidden="true"></i> <?php echo $this->translate('删除'); ?></a>
                                            </p>
                                        <?php } ?>
                                        <?php echo $this->formElement($form->get('shop_footer_image_4|shop_footer')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_footer_image_4|shop_footer'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('链接地址4'); ?></label>
                                    <div class="col-sm-5">
                                        <?php echo $this->formElement($form->get('shop_footer_image_4_url|shop_footer')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_footer_image_4_url|shop_footer'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <hr>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('图片5'); ?></label>
                                    <div class="col-sm-4">
                                        <?php if(is_string($form->get('shop_footer_image_5|shop_footer')->getValue()) && !empty($form->get('shop_footer_image_5|shop_footer')->getValue())) { ?>
                                            <p id="shop_footer_image_5" style="margin-bottom: 15px;">
                                                <img src="<?php echo $this->basePath($form->get('shop_footer_image_5|shop_footer')->getValue()) . '?v='.time(); ?>" style="max-width: 300px;padding-bottom: 5px;">
                                                <a href="javascript:;" class="label label-danger" onclick="deleteFooterImage('shop_footer_image_5');" style="vertical-align: bottom"><i class="fa fa-trash-o" aria-hidden="true"></i> <?php echo $this->translate('删除'); ?></a>
                                            </p>
                                        <?php } ?>
                                        <?php echo $this->formElement($form->get('shop_footer_image_5|shop_footer')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_footer_image_5|shop_footer'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"><?php echo $this->translate('链接地址5'); ?></label>
                                    <div class="col-sm-5">
                                        <?php echo $this->formElement($form->get('shop_footer_image_5_url|shop_footer')); ?>
                                        <?php echo $this->formElementErrors($form->get('shop_footer_image_5_url|shop_footer'), ['class'=>'error-message']); ?>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>

                </div>
            </div>
        </div>

    </section>
    <?php echo $this->form()->closeTag(); ?>
</div>
<script>
    $('#sms_service_provider-sms').change(function () {
        if(this.value == 'tencentSms') {
            $('.tencent-sms').show();
        } else {
            $('.tencent-sms').hide();
        }
    });

    $('#email_service_type-email').change(function () {
        if(this.value == 'dbshopEmailService') {
            $('.dbshop-email-service').show();
            $('.smtp-service').hide();
        } else {
            $('.smtp-service').show();
            $('.dbshop-email-service').hide();
        }
    });

    function deleteFooterImage(footerImage) {
        $.post('<?php echo $this->url('admin-system', ['action'=>'deleteSystemFooterImage']); ?>', {footerImage:footerImage}, function (data) {
            if (data.state == 'true') {
                $('#'+footerImage).remove();
            }
            shopMessage(data.message);
        }, 'json');
    }
</script>
<?php echo $this->partial('common/editor',['edit_array'=>['sales_service|content','buy_service|content'],'edit_config'=>['initialFrameHeight:300']]); ?>
